package com.itheima.wisdomnext.service;

import com.itheima.wisdomnext.entity.Announcement;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface AnnouncementService {

    // 获取所有公告
    List<Announcement> getAllAnnouncements() ;

    // 根据 ID 获取公告
    Announcement getAnnouncementById(Integer id) ;

    // 发布公告
    void createAnnouncement(Announcement announcement) throws Exception;

    // 更新公告
    void updateAnnouncement(Announcement announcement) throws Exception;

    // 将公告状态改为失效（软删除）
    void deactivateAnnouncement(Integer id) throws Exception;
}
